import type {
  UnitManagementSaveOrUpdateUnitParams,
  UnitManagementSaveOrUpdateUnitTypeParams,
} from '@/types'

export const defaultFormData: Partial<UnitManagementSaveOrUpdateUnitTypeParams>
  = {
    sort: 0,
    typeName: '',
    unitExpression: '',
    unitName: '',
  }
export const defaultInfoFormData: Partial<UnitManagementSaveOrUpdateUnitParams>
  = {
    isBasic: 0,
    sort: 0,
    typeId: 0,
    unitExpression: '',
    unitName: '',
  }

export const formRules
  = generateCurrencyFormRules(defaultFormData)

export const infoFormRules = generateCurrencyFormRules(
  defaultInfoFormData,
)
